<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>脚本 | 新增</title>
<@fm.header />
</head>
<body>
<div class="easyui-layout" style="text-align: center; height: 270px;" fit="true">
	<div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
	<form id="ff" method="post" enctype="multipart/form-data">
	<input type="hidden" name="isDelete"   value=1 />
	    <table>
	        <tr>
	            <td><label for="name">脚本名称:</label></td>
	            <td>
	            	<input type="text" name="name" id="name"></input> 
	            </td>
	        </tr>
	        <tr>
	            <td><label for="name">脚本类型:</label></td>
	            <td>
	            	<select class="easyui-combobox" id="type" name="type" panelHeight="auto" style="width:155px" >
				        <option value="-1" selected>-选择-</option>
			            <option value="1">新增</option>
			        	<option value="2">留存</option>
			        </select>
	            </td>
	        </tr>
	        <tr>
	            <td><label for="addScript">脚本库:</label></td>
	            <td>
	            	<input name="repoIds" id="repoIds" class="easyui-combobox" style="width: 155px;" data-options="
						required:true,
						url:'/script/scriptRepoData?isEnable=1',
						method:'get',
						valueField:'id',
						textField:'name',
						multiple:true,
						panelHeight:'150'" />
	            </td>
	        </tr>
	        <tr>
	            <td><label for="addScript">脚本文件:</label></td>
	            <td>
	            	<input type="file" name="file" id="script"></input> 
	            </td>
	        </tr>
	    </table>
	</form>
	</div>
	<div region="south" border="false" style="text-align: center; padding: 5px 5px 5px 0;">
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm('/script/addScriptItem')">提交</a>
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm();">重置</a>
	</div>
</div>
</body>
</html>